<?php
function display_ad($channel_name) {
	$ads = array(
		"coolness_top" 		=> "4684836892",
		"coolness_mid" 		=> "1056814902",
		"coolness_bottom" 	=> "6034556790",
		"maptrick_top"		=> "9337287606",
		"maptrick_bottom"	=> "2285980684",
		"editorial" 		=> "5019847604",
		"seasons" 		=> "2701330756",
		"hallofcool_top"	=> "8595579906",
		"hallofcool_mid"	=> "1165753497",
		"hallofcool_bottom"	=> "8013505367",
		"challenge_suggester"	=> "4733653840"
	);
	$channel = "{$ads[$channel_name]}";
?>
<script type="text/javascript"><!--
google_ad_client = "pub-7956987225901689";
google_alternate_ad_url = "http://maptrick.nl.eu.org/~laszlo/hattrick468_a.gif";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
<?php if ($channel != "") echo "google_ad_channel = \"$channel\";\n"; else echo "google_ad_channel =\"\";\n"; ?>
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<?php
}
?>
